include ../makeinclude


SRC := $(wildcard *.cpp)
OBJ := $(addsuffix .o,$(SRC))
DEP := $(addsuffix .d,$(SRC))
LIB := ../libbase.a


.PHONY : all clean distclean compress

all : $(OBJ) $(LIB)

#$(LIB) : $(OBJ)
#	$(AR) -cr $(LIB) $(OBJ)

$(LIB) : $(LIB)($(OBJ))

clean :
	-$(RM) $(OBJ) $(LIB)

distclean : clean
	-$(RM) $(DEP)

ifeq ($(findstring $(MAKECMDGOALS),clean distclean compress),)
 -include $(DEP)
endif

